package by.semerikov.generator;

import java.util.Random;

import by.semerikov.generator.properties.Property;
import by.semerikov.parts.HttpVersion;

public class HttpVersionGenerator {
	
	private static Double[] versions = {1.1 , 1.2, 1.3 , 2.0 };
	
	public HttpVersion generate(Property prop)
	{
		HttpVersion result = new HttpVersion();
		result.setHeader("HTTP");
		Random r = new Random();
		result.setVersion(versions[r.nextInt(versions.length)]);
		return result;
	}
}
